import { defineStore } from 'pinia';
import { reactive,ref } from 'vue'
export const useSetPwa = defineStore('setPwa', {
    state: () => ({
      pwaEvent: {}
    }),
    actions: {
      setPwa(data) {
        this.pwaEvent = data
      },
	  getPwa() {
	    return this.pwaEvent
	  },
      clearPwa() {
        this.pwaEvent = {}; // 直接清空 pwaEvent 对象
      },
    },
    persist: true, // 启用持久化
});